package com.hk.service.sys.impl;

import org.springframework.stereotype.Service;

import com.hk.commons.entity.sys.Attendance;
import com.hk.dao.base.impl.BaseServiceImpl;
import com.hk.service.sys.IAttendance;

@Service
public class AttendanceImpl extends BaseServiceImpl<Attendance> implements
		IAttendance {

	@Override
	public Attendance findById(Long id) {
		return getById(id);
	}

	@Override
	public Long add(Attendance model) {
		return (Long) save(model);
	}

	@Override
	public Attendance delete(Long id) {
		Attendance model = new Attendance();
		model.setId(id);
		delete(model);
		return model;
	}

}
